import { Inject, Get } from '@midwayjs/core';
import { CoolController, BaseController } from '@cool-midway/core';
import { ContentHomeService } from '../../service/home';

@CoolController({
    api: [],
})
export class ProviderContentHomeController extends BaseController {
    @Inject()
    contentHomeService: ContentHomeService;

    @Get('/index', { summary: '首页聚合数据' })
    async index() {
        return this.ok(await this.contentHomeService.index());
    }
}

